//系统配置
import Layout from '@/layout'
export default {
    path: '/stmConfiguration',
    component: Layout,
    redirect: '/stmConfiguration/department',
    children: [{
            path: '/stmConfiguration/department',
            component: () => import('@/view/stmConfiguration/department'),
            meta: {
                title: '默通工单',
                breadList: [{
                        name: '系统配置',
                        to: '/stmConfiguration/department'
                    },
                    {
                        name: '部门',
                        to: '/stmConfiguration/department'
                    },
                ],
                permCode: "dept.system.conf"
            }
        }, {
            path: '/stmConfiguration/user',
            component: () => import('@/view/stmConfiguration/user'),
            meta: {
                title: '默通工单',
                breadList: [{
                        name: '系统配置',
                        to: '/stmConfiguration/department'
                    },
                    {
                        name: '用户',
                        to: '/stmConfiguration/user'
                    },
                ],
                permCode: "user.system.conf"
            }
        }, {
            path: '/stmConfiguration/factory',
            component: () => import('@/view/stmConfiguration/factory'),
            meta: {
                title: '默通工单',
                breadList: [{
                        name: '系统配置',
                        to: '/stmConfiguration/department'
                    },
                    {
                        name: '工厂',
                        to: '/stmConfiguration/factory'
                    },
                ],
                permCode: "org.system.conf"
            }
        }, {
            path: '/stmConfiguration/user/loadLog',
            component: () => import('@/view/stmConfiguration/user/loadLog'),
            meta: {
                title: '默通工单',
                activePath: '/stmConfiguration/user',
                breadList: [{
                        name: '系统配置',
                        to: '/stmConfiguration/department'
                    },
                    {
                        name: '用户',
                        to: '/stmConfiguration/user'
                    },
                    {
                        name: '导入日志',
                        to: '/stmConfiguration/user/loadLog'
                    },
                ],
                permCode: "user.loadLog"
            }
        }, {
            path: '/stmConfiguration/user/logDetail',
            component: () => import('@/view/stmConfiguration/user/logDetail'),
            meta: {
                title: '默通工单',
                activePath: '/stmConfiguration/user',
                breadList: [{
                        name: '系统配置',
                        to: '/stmConfiguration/department'
                    },
                    {
                        name: '用户',
                        to: '/stmConfiguration/user'
                    },
                    {
                        name: '导入日志',
                        to: '/stmConfiguration/user/loadLog'
                    },
                    {
                        name: '导入日志详情',
                        to: '/stmConfiguration/user/logDetail'
                    }
                ],
                permCode: "user.logDetail"
            }
        },{
            path: '/stmConfiguration/device',
            component: () => import('@/view/stmConfiguration/device'),
            redirect: '/stmConfiguration/device/group',
            children: [{
                path: '/stmConfiguration/device/group',
                component: () => import('@/view/stmConfiguration/device/group'),
                meta: {
                    title: '默通工单',
                    activePath: '/stmConfiguration/device',
                    breadList: [{
                            name: '系统配置',
                            to: '/stmConfiguration/department'
                        },
                        {
                            name: '设备',
                            to: '/stmConfiguration/device/group'
                        },
                        {
                            name: '分组管理',
                            to: '/stmConfiguration/device/group'
                        },
                    ],
                    permCode: "dev.system.info.group"
                }
            },{
                path: '/stmConfiguration/device/info',
                component: () => import('@/view/stmConfiguration/device/info'),
                meta: {
                    title: '默通工单',
                    activePath: '/stmConfiguration/device',
                    breadList: [{
                            name: '系统配置',
                            to: '/stmConfiguration/department'
                        },
                        {
                            name: '设备',
                            to: '/stmConfiguration/device/group'
                        },
                        {
                            name: '设备信息',
                            to: '/stmConfiguration/device/info'
                        },
                    ],
                    permCode: "dev.system.info.info"
                }
            }]
        }
    ]
}